<?php

/**
 * Test configuration
 * Usage:
 * - Local website
 * - Local DB
 * - Standard production error pages (404, 500, etc.)
 */

$dirname = dirname(__FILE__);

return array(
	// Set yiiPath (relative to Environment.php)
	//'yiiPath' => dirname(__FILE__) . '/../../../yii/framework/yii.php',
	//'yiicPath' => dirname(__FILE__) . '/../../../yii/framework/yiic.php',
	//'yiitPath' => dirname(__FILE__) . '/../../../yii/framework/yiit.php',
	// Set YII_DEBUG and YII_TRACE_LEVEL flags
	'yiiDebug'=>false,
	'yiiTraceLevel'=>0,
	// Static function Yii::setPathOfAlias()
	'yiiSetPathOfAlias'=>array(
	// uncomment the following to define a path alias
	//'local' => 'path/to/local-folder'
	),
	// This is the specific Web application configuration for this mode.
	// Supplied config elements will be merged into the main config array.
	'configWeb'=>array(
		// Application components
		'components'=>array(
			// Database
			'db'=>array(
				'connectionString'=>"sqlite:$dirname/../data/test.db",
			),
			// Fixture Manager for testing
			'fixture'=>array(
				'class'=>'system.test.CDbFixtureManager',
			),
			// URL Manager
			'urlManager'=>array(
				'showScriptName'=>true,
			),
			// Application Log
			'log'=>array(
				'class'=>'CLogRouter',
				'routes'=>array(
					// Save log messages on file
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'error, warning, trace, info',
					),
					// Show log messages on web pages
					array(
						'class'=>'CWebLogRoute',
						//'categories' => 'system.db.CDbCommand', //queries
						'levels'=>'error, warning',
					),
				),
			),
		),
		// application-level parameters that can be accessed
		// using Yii::app()->params['paramName']
		'params'=>array(
			'mode'=>'test',
			'admin'=>array(
				'name'=>'Julot',
				'email'=>'andy.julot@gmail.com',
			),
			'file'=>'/Website/Stratos4/Ayamo/files',
			'monitor'=>array('time'=>12.0),
			'recaptcha'=>array(
				'key'=>array(
					'public'=>'6Lf5cscSAAAAADxVqdOc4PSIUGe-TGk7NMasPe0Y',
					'private'=>'6Lf5cscSAAAAAGq4Yid0LKsnz3RknmGOSWE8CADZ',
				),
			),
			'notification'=>array(
				'sender'=>array(
					'name'=>'Senkom Information Center',
					'email'=>'berita@senkom.or.id',
				),
				'recipients'=>array(
					array(
						'name'=>'Julot',
						'email'=>'andy.julot@gmail.com',
					),
				),
			),
			'twitter'=>array(
				'username'=>'SenkomMP',
				'password'=>'rama9admin',
				'consumer'=>array(
					'key'=>'NHtuWA5Rwqxu07KGAQOtWg',
					'secret'=>'1rb88wTedwCkfpFkXN0FHjpRUaPTWUKWX45g7vmM2Ks',
				),
				'access'=>array(
					'token'=>array(
						'value'=>'335743263-jZ8ki1WHBB8Y8a4fFJmKG529xgcD0w7wZu1lPJjP',
						'secret'=>'21OHSEo5up6BKNlwnH92dTDbGcB3sOlpt3oMW4B4',
					),
				),
				'friends'=>array(
					130169009, // NTMC POLRI
				),
			),
			'email'=>array(
				'username'=>'berita@senkom.or.id',
				'password'=>'beritasic',
				'hostname'=>'{imap.gmail.com:993/imap/ssl}INBOX',
			),
		),
	),
	// This is the Console application configuration. Any writable
	// CConsoleApplication properties can be configured here.
	// Leave array empty if not used.
	// Use value 'inherit' to copy from generated configWeb.
	'configConsole'=>array(
		'params'=>'inherit',
	),
);